<?php

require_once CLASSES_PATH.'/class.User.php';
require_once CLASSES_PATH.'/class.Sedes.php';

class InfoController extends Zend_Controller_Action
{

	public function init()
	{
		/* Initialize action controller here */
	}

	public function indexAction()
	{
	}

	public function estadiosAction(){
		$sede_id = $this->_request->getParam('sede');
		
		$sedes = new Sedes();
		
		if(is_numeric($sede_id)){
			$data = $sedes->getData($sede_id);	
		}
		else{
			$this->view->multiple = true;
			$data = $sedes->getAll();
		}
		$this->view->data = $data;
	}

	public function reglasAction(){
	}

	public function posicionesAction(){
	}
	
	public function nosotrosAction(){
	}
	
	
}

